package com.netease.liang.ch02.mixedconfig;



import com.netease.liang.ch02.common.CompactDisc;
import com.netease.liang.ch02.common.MediaPlayer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class CDPlayerConfig {

    @Bean
    public MediaPlayer cdPlayer(CompactDisc compactDisc) {
        return new CDPlayer(compactDisc);
    }
}
